.class Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;
.super Ljava/util/TimerTask;
.source "AndroidInputMethod.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/microemu/android/device/AndroidInputMethod;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "KeyReleasedDelayTask"
.end annotation


# instance fields
.field private repeatModeKeyCode:I

.field final synthetic this$0:Lorg/microemu/android/device/AndroidInputMethod;


# direct methods
.method constructor <init>(Lorg/microemu/android/device/AndroidInputMethod;I)V
    .locals 0
    .parameter
    .parameter "repeatModeKeyCode"

    .prologue
    .line 57
    iput-object p1, p0, Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;->this$0:Lorg/microemu/android/device/AndroidInputMethod;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    .line 58
    iput p2, p0, Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;->repeatModeKeyCode:I

    .line 60
    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    const/high16 v4, -0x8000

    .line 63
    iget v2, p0, Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;->repeatModeKeyCode:I

    if-eq v2, v4, :cond_0

    .line 64
    invoke-static {}, Lorg/microemu/MIDletBridge;->getMIDletAccess()Lorg/microemu/MIDletAccess;

    move-result-object v1

    .line 65
    .local v1, ma:Lorg/microemu/MIDletAccess;
    if-nez v1, :cond_1

    .line 78
    .end local v1           #ma:Lorg/microemu/MIDletAccess;
    :cond_0
    :goto_0
    return-void

    .line 69
    .restart local v1       #ma:Lorg/microemu/MIDletAccess;
    :cond_1
    invoke-virtual {v1}, Lorg/microemu/MIDletAccess;->getDisplayAccess()Lorg/microemu/DisplayAccess;

    move-result-object v0

    .line 70
    .local v0, da:Lorg/microemu/DisplayAccess;
    if-eqz v0, :cond_0

    .line 74
    iget v2, p0, Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;->repeatModeKeyCode:I

    invoke-interface {v0, v2}, Lorg/microemu/DisplayAccess;->keyReleased(I)V

    .line 75
    iget-object v2, p0, Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;->this$0:Lorg/microemu/android/device/AndroidInputMethod;

    const/4 v3, 0x0

    invoke-static {v2, v3}, Lorg/microemu/android/device/AndroidInputMethod;->access$002(Lorg/microemu/android/device/AndroidInputMethod;Z)Z

    .line 76
    iput v4, p0, Lorg/microemu/android/device/AndroidInputMethod$KeyReleasedDelayTask;->repeatModeKeyCode:I

    goto :goto_0
.end method
